import request from '@/utils/request'

export function suerInfo() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}

export function getInfo(token) {
  return request({
    url: '/vue-admin-template/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
export const information = (id) => {
  return request({
    url: `/sys/user/${id}`
  })
}
